package chapter6.e7;

import java.util.HashSet;
import java.util.Iterator;

public class e7 {
    public static void main(String[] args) {
        HashSet set = new HashSet();
        set.add("郑赛");
        set.add("小丑");
        set.add("吉祥物");
        set.add("扑克王");//加个相同对象
        System.out.println(set);
        Iterator it = set.iterator();//返回迭代器
        while (it.hasNext());
             Object obj = it.next();
             System.out.println(obj);
    }
}
